<?php

App::uses("ValuesBuildAbstract", "Wchart.Lib/chart");

class ValuesBuildSql extends ValuesBuildAbstract {

	function build() {
		$query = $this->serie["datasource"];
		$this->loadModel("Dual");
		$comodo=Hash::flatten($this->Dual->query($query));
		foreach ($comodo as $key => $value) {
			array_push($this->data, doubleval($value));
		}
		// pr($this->data);die;
	}


}
?>